#################
#### MODULES ####
#################
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support
$ModLoad imfile

# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on


###########################
#### GLOBAL DIRECTIVES ####
###########################
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Filter duplicated messages
$RepeatedMsgReduction on

#
# Set the default permissions for all log files.
#
$FileOwner {{ rsyslog_logfile_user }}
$FileGroup {{ rsyslog_logfile_group }}
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser {{ rsyslog_logfile_drop_user }}
$PrivDropToGroup {{ rsyslog_logfile_drop_group }}

#
# Where to place spool and state files
#
$WorkDirectory {{ rsyslog_client_spool_directory }}

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
